import { h } from "vue";
import { Icon } from "@iconify/vue";

/** 暂时放弃动态icon的渲染 */
export function iconifyRender(icon: string, color?: string, size?: number) {
    const style: { color?: string; size?: string } = {};
    if (color) {
        style.color = color;
    }
    if (size) {
        style.size = `${size}px`;
    }
    return () => h(Icon, { icon, style })
}